public class GreaterThanOp extends ComparisonOp {
	public GreaterThanOp() {
		super(">");
	}
	
	@Override
	public boolean isGreaterThanOp() { 
		return true; 
	}
	@Override
	public STO calculate(ConstSTO left, ConstSTO right) {
		ConstSTO sto;
		int result ;
		if ( left.getIntValue() > right.getIntValue() ) {
			result = 1 ;
		} else {
			result = 0 ;
		}
		sto = new ConstSTO((left.getName() + ">" + right.getName()), new BoolType(), 
				  Integer.toString(result));
		return sto;
	}
}
